package com.xx.ch06.demo.demo14;


import com.xx.ch06.demo.demo11.User;

public class UserServiceImpl implements UserService {
    //实例化依赖
    private UserDao dao;
    public UserServiceImpl(){}
    public UserServiceImpl(UserDao dao){
        this.dao=dao;
    }

    @Override
    public void save(User user) {
        //调用
        dao.save(user);
    }
    public void setDao(UserDaoImpl dao) {
    }

}
